package com.ecar.api.support.dto;

import com.ecar.common.util.JSONSerialization;
import com.ecar.common.util.JSONUtil;

/**
 * Created by admin on 2016/12/12.
 */
public class WsPayload implements JSONSerialization{

	String topic;
	String msg;

	public WsPayload() { }

	public WsPayload(String topic, String msg) {
		this.topic = topic;
		this.msg = msg;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String toString() {
		return JSONUtil.serializeAll(this);
	}
}
